/* 全局重置样式 */
view,
view::before,
view::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 常用样式 */

/* 布局 */
.flex {
  display: flex;
  align-items: center;
}

.flex-column {
  flex-direction: column;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-around {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

/* 文本 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-bold {
  font-weight: bold;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 按钮 */
.button {
  display: inline-block;
  padding: 20rpx 40rpx;
  font-size: 28rpx;
  color: rgba(255, 255, 255, 1);
  /* 白色 */
  background-color: rgba(0, 123, 255, 1);
  /* #007bff */
  border: none;
  border-radius: 10rpx;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;

  &:active {
    background-color: rgba(0, 123, 255, 0.9);
    /* 变暗效果 */
  }

  &:disabled {
    background-color: rgba(204, 204, 204, 1);
    /* #ccc */
    cursor: not-allowed;
  }

  &.button-secondary {
    background-color: rgba(108, 117, 125, 1);
    /* #6c757d */

    &:active {
      background-color: rgba(108, 117, 125, 0.9);
      /* 变暗效果 */
    }
  }

  &.button-success {
    background-color: rgba(40, 167, 69, 1);
    /* #28a745 */

    &:active {
      background-color: rgba(40, 167, 69, 0.9);
      /* 变暗效果 */
    }
  }

  &.button-danger {
    background-color: rgba(220, 53, 69, 1);
    /* #dc3545 */

    &:active {
      background-color: rgba(220, 53, 69, 0.9);
      /* 变暗效果 */
    }
  }
}

/* 间距 */
.mt-10 {
  margin-top: 10rpx;
}

.mb-10 {
  margin-bottom: 10rpx;
}

.ml-10 {
  margin-left: 10rpx;
}

.mr-10 {
  margin-right: 10rpx;
}

.pt-10 {
  padding-top: 10rpx;
}

.pb-10 {
  padding-bottom: 10rpx;
}

.pl-10 {
  padding-left: 10rpx;
}

.pr-10 {
  padding-right: 10rpx;
}

/* 其他 */
.hidden {
  display: none;
}

.full-width {
  width: 100%;
}

.full-height {
  height: 100%;
}

.cursor-pointer {
  cursor: pointer;
}

/* 全局字体设置 */
body,
page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  font-size: 28rpx;
  color: rgba(51, 51, 51, 1);
  /* #333 */
}

/* 隐藏滚动条 */
.disable-scrollbar {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 和 Edge */

  &::-webkit-scrollbar {
    display: none;
    /* Chrome、Safari 和新版 Edge */
  }
}

.text1 {
  font-size: 24rpx;
  color: #333;
}

.text2 {
  font-size: 22rpx;
  color: #666;
}

.text3 {
  font-size: 20rpx;
  color: #999;
}

.common-card {
  border-radius: 12rpx;
  box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.08);
}

.comm-bootom-shadow {
  box-shadow: 0px 3px 3px -1px rgba(0, 0, 0, 0.08);
}

.common-container {
  padding-bottom: calc(34rpx + constant(safe-area-inset-bottom)) !important;
  /*兼容 IOS<11.2*/
  padding-bottom: calc(34rpx + env(safe-area-inset-bottom)) !important;
  /*兼容 IOS>11.2*/
}

.primary-btn {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  color: #fff;
  background: $uni-primary;
  border-radius: 4px;
  font-size: 14px;

  &::after {
    border-color: $uni-primary;
  }
}

.primary-btn-plain {
  width: 100%;
  height: 35px;
  line-height: 35px;
  box-sizing: border-box;
  text-align: center;
  color: $uni-primary;
  background: transparent;
  border-radius: 4px;
  font-size: 14px;

  &::after {
    border-color: $uni-primary;
  }
}

// 一级字
.common-text-1 {
	font-size: 24rpx;
	color: $uni-color-1;
}

.pay-btn {
  bottom: calc(30rpx + env(safe-area-inset-bottom)) !important;
  bottom: calc(30rpx + env(safe-area-inset-bottom)) !important;
}

.active-text {
  color: #F56C6C;
}

.placeholder-text {
  color: $uni-color-3
}

.common-info-box {
  width: 100%;
  min-height: 70rpx;
  background-color: #fff;
  padding: 20rpx 30rpx;
  margin-bottom: 20rpx;
  box-sizing: border-box;
  font-size: 24rpx;
  border-radius: 6rpx;
  box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.08);

  .form-list-wrap {
    width: 100%;
    min-height: 90rpx;
    display: flex;
    align-items: center;
    font-size: 24rpx;
    color: $uni-color-1;
    padding: 0rpx 16rpx;
    border-bottom: 1px solid #f2f2f2;
    box-sizing: border-box;

    .list-left-box {
      width: 30%;
      height: 100%;
      display: flex;
      justify-content: flex-start;
      align-items: center;

      .list-left-item {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }
    }

    .list-right-box {
      width: 70%;
      height: 100%;
      display: flex;
      justify-content: flex-end;
      align-items: center;

      .list-right-item {
        width: calc(100% - 38rpx);
        box-sizing: border-box;
        margin-right: 10rpx;
        text-align: right;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }

      .is-place-holder {
        color: $uni-color-3;
      }

      &>uni-icons {
        margin-top: 1px;
      }
    }
  }

  .is-clickable {
    padding-right: 0rpx;

    &:active {
      background: #f1f1f1;
    }
  }

  .is-required {
    position: relative;

    &::before {
      content: "*";
      position: absolute;
      left: 0rpx;
      top: 50%;
      transform: translateY(-50%);
      font-size: 30rpx;
      color: #F56C6C;
    }
  }
}

.member-info-box {
  height: 134rpx;
  font-size: 24rpx;
  display: flex;
  align-items: center;
  padding: 0rpx 20rpx;
  background-color: #fff;
  border-radius: 11rpx;
  box-sizing: border-box;
  margin-bottom: 20rpx;

  .member-info-item {
    width: 100%;
    height: 100rpx;
    display: flex;
    align-items: center;

    .info-left-box {
      width: calc(100% - 40rpx);
      margin-right: 10rpx;
      height: 100%;
      box-sizing: border-box;
      font-size: 24rpx;
      color: $uni-color-1;
      display: flex;
      align-items: center;

      &>image {
        width: 100rpx;
        height: 100rpx;
        border-radius: 50%;
      }

      .member-info {
        width: calc(100% - 90rpx);
        margin-left: 10rpx;

        .member-top-info {
          width: 100%;
          display: flex;
          align-items: center;
          box-sizing: border-box;
          margin-bottom: 5rpx;

          &>view {
            max-width: calc(100% - 25rpx);
            margin-right: 5rpx;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }

          &>image {
            width: 20rpx;
            height: 20rpx;
          }
        }

        .member-bottom-info {
          width: 100%;
          box-sizing: border-box;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
    }
  }
}

.not-scrollbar {
  ::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    color: transparent;
  }

  -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

::-webkit-scrollbar-thumb {
  display: none;
}

::-webkit-scrollbar-track {
  display: none;
}